import request from '@/utils/request'

// 查询短信模板列表
export function listSms_template(query) {
    return request({
        url: '/business/sms_template/list',
        method: 'get',
        params: query
    })
}

// 查询短信模板详细
export function getSms_template(id) {
    return request({
        url: '/business/sms_template/' + id,
        method: 'get'
    })
}

// 新增短信模板
export function addSms_template(data) {
    return request({
        url: '/business/sms_template',
        method: 'post',
        data: data
    })
}

// 修改短信模板
export function updateSms_template(data) {
    return request({
        url: '/business/sms_template',
        method: 'put',
        data: data
    })
}

// 删除短信模板
export function delSms_template(id) {
    return request({
        url: '/business/sms_template/' + id,
        method: 'delete'
    })
}

// 导出短信模板
export function exportSms_template(query) {
    return request({
        url: '/business/sms_template/export',
        method: 'get',
        params: query
    })
}
